home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / program / qlib205.zip / QLIB.ZIP / TEST / CTYPE.C < prev    next >
C/C++ Source or Header  |  1997-01-20  |  271b  |  19 lines

  1. // Ctype.h tests
  2.  
  3. #include <CTYPE.H>
  4.  
  5. #include <stdio.h>
  6.  
  7. void *tof[]={"False","True"};
  8.  
  9. void main(void) {
  10.   int a;
  11.   a=isascii('5');
  12.   printf("isascii('5') == %i %s\n",a,tof[a&1]);
  13.  
  14.   a=isdigit('a');
  15.   printf("isdigit('a') == %i %s\n",a,tof[a&1]);
  16.  
  17. }
  18.  
  19.